package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class generarjuegoV extends javax.swing.JFrame {
	private JPanel Jpanelvg;
	private JButton btnsalir;
	private JButton btngenrarjuego;
	private JLabel lblgen;

	/**
	* Auto-generated main method to display this JFrame
	*/
		
	public generarjuegoV() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Generar Juegos");
			this.setIconImage(new ImageIcon(getClass().getClassLoader().getResource("imagen/generar.JPG")).getImage());
			{
				Jpanelvg = new JPanel();
				getContentPane().add(Jpanelvg, BorderLayout.CENTER);
				Jpanelvg.setLayout(null);
				Jpanelvg.setBackground(new java.awt.Color(255,255,255));
				{
					lblgen = new JLabel();
					Jpanelvg.add(lblgen);
					lblgen.setText("Generar Juegos");
					lblgen.setBounds(121, 17, 268, 44);
					lblgen.setFont(new java.awt.Font("Agency FB",0,24));
				}
				{
					btngenrarjuego = new JButton();
					Jpanelvg.add(btngenrarjuego);
					btngenrarjuego.setText("Generar");
					btngenrarjuego.setBounds(144, 116, 164, 84);
					btngenrarjuego.setForeground(new java.awt.Color(255,255,255));
					btngenrarjuego.setBackground(new java.awt.Color(0,0,64));
					btngenrarjuego.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/Handball-32.png")));
				}
				{
					btnsalir = new JButton();
					Jpanelvg.add(btnsalir);
					btnsalir.setText("Salir");
					btnsalir.setBounds(313, 320, 134, 44);
					btnsalir.setForeground(new java.awt.Color(255,255,255));
					btnsalir.setBackground(new java.awt.Color(0,0,64));
					btnsalir.setIcon(new ImageIcon(getClass().getClassLoader().getResource("imagen/Log-out-32.png")));
				}
			}
			pack();
			this.setSize(497, 437);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener actionListener){
		btngenrarjuego.addActionListener(actionListener);
		btnsalir.addActionListener(actionListener);
	}
	
	public void mensaje(String sms){
		JOptionPane.showMessageDialog(this,sms);
	}

}
